package com.yupi.usercenter.once;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelReader;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.PageReadListener;
import com.alibaba.excel.read.metadata.ReadSheet;
import com.alibaba.excel.util.ListUtils;

import java.io.File;

/**
 * Author: 阿星程序员
 * Date: 2025/1/1
 * Function Description: 
 */
public class ImportExcel {

    public static void main(String[] args) {
            String fileName = "D:\\edgedownloads\\Idea\\xingxiang_back\\src\\main\\resources\\工作簿1.xlsx";
            // 这里默认每次会读取100条数据 然后返回过来 直接调用使用数据就行
            EasyExcel.read(fileName, UserInfor.class,new UserInforListener()).sheet().doRead();

        }




}
